babl-extension: print warning if no extensions were loaded
authorØyvind Kolås <pippin@gimp.org>
Tue, 30 Aug 2016 22:17:24 +0000 (00:17 +0200)
committerØyvind Kolås <pippin@gimp.org>
Tue, 30 Aug 2016 22:17:24 +0000 (00:17 +0200)
babl/babl-extension.c

index bc371f8f957045d8263479175a636fdb4cb32e67..2f0b3afe7610155e79b570d3831d509bf7a4c601 100644 (file)
@@ -346,6 +346,14 @@ babl_extension_load_dir_list (const char *dir_list)
         }
     }
   babl_free (path);
+  if (babl_db_count (db) <= 0)
+  {
+    fprintf (stderr,
+"WARNING: the babl installation seems broken, no extensions found in queried\n"
+"BABL_PATH (%s) this means no SIMD/instructions/special case fast paths and\n"
+"only slow reference conversions are available, applications might still\n"
+"run but software relying on babl for conversions will be slow\n", dir_list);
+  }
 }
 
 #endif